//const uniID = require("uni-id");
module.exports = () => {
  return async function logger(ctx, next) {
		const host=ctx.event.headers.host;
		const path=ctx.event.path;
    uniCloud.logger.log(` ${host}${path} ${ctx.event.body}`);
    await next(); // 执行后续中间件
  };
};